<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>我的头条</title>
<link href="<?php echo base_url();?>public/frame.css" rel="stylesheet" type="text/css" />
<script src="<?php echo base_url();?>public/js/jquery.min.js" type="text/javascript"></script>
<script src="<?php echo base_url();?>public/js/base.js" type="text/javascript"></script> 
<script type="text/javascript">
$(document).ready(function() {
    //each遍历文本框
    $("textarea").each(function() {
        //保存当前文本框的值
		$(this).css({"font-family":"Arial","font-size":"15px"})
        var vdefault = this.value;
        $(this).focus(function() {
            
            //获得焦点时，如果值为默认值，则设置为空
			$(this).css({"background-image":"none"});
        });
        $(this).blur(function() {
            //失去焦点时，如果值为空，则设置为默认值
            if (this.value == vdefault) {
				$(this).css({"background-image":"url(<?php echo base_url();?>public/images/world.gif)"});
                this.value = vdefault;	
            }
        });
    });});
</script>
</head>

<body>
<div class="container"><!--页面层容器-->
    <div class="header">
        <div class="globalheader"><!--头部-->
                <div class="userhead"><a href="<?= 'http://weibo.com/u/'.(string)$uid_me ?>"><img src="<?=$user_message['profile_image_url']?>" /></a></div>		
         </div>
         <div class="topbar"><!--上边栏-->
                    <div class="headform" >
                    <button class="headbutton" type="submit" title="发送微博按钮" name="headbutton" tabindex="2"></button>
                    <textarea class="textfield" title="微博输入框" name="text" tabindex="1"></textarea>
                    </div>
        </div>
    </div>
    <div class="pagebody"><!--页面主体-->  
        <div class="mainbody" ><!--主题内容-->
           <ol>
               <?php $count=1;foreach( $user_info as $item ): ?>
                    <li><div class="clearstyle">
                          <dl>
                              <dt class="face"> <img style="float:left" src="<?php echo base_url();?>public/images/number<?=$count?>.gif"/>
                                   <a target='_blank' href="<?='http://weibo.com/u/'.(string)$item['fans_uid']?>"><img  style="width:25px; height:25px"  src="<?=$item['fans_img_url']?>"/></a>
                              </dt>
                              <dd class="content">
                                    <a target='_blank' style=" text-decoration:none"  href="<?='http://weibo.com/u/'.(string)$item['fans_uid']?>"><span><?=$item['fans_screen_name']?></span></a>:<?=$item['text'];?>
                                                    <?php if( ! empty($item['retweeted_uid'])): ?><!--如果非原创微博，则显示原微博-->
                                                            <div class="subcontent" ><!--原微博信息-->
                                                            	  <a id="astyle"  href="<?='http://weibo.com/u/'.(string)$item['retweeted_uid']?>" target='_blank'>
                                                                <span><?=$item['retweeted_screen_name']?></span>
                                                                </a>
                                                                :<?=$item['retweeted_txt'];?>
                                                            </div>
                                                    <?php endif; ?>
                              </dd>
                              <dd class="clear"></dd>
                          </dl>
                          <dl>
                             <dt class="point">
                                    <img style="height:12px;width:12px;padding:0;margin-top:5px" src="<?php echo base_url();?>public/images/line_07.gif"/></dt>
                             <dd class="datastyle"><?php 
                                                     $time=strtotime($item['created_at']);
                                                     echo date("m",$time)."月".date("d",$time)."日&nbsp".date("H",$time).":".date("m",$time); 
                                                                  ?>
                             </dd>
                             <dd class="clear"></dd>
                          </dl>
                          </div>
                    </li>
                        <?php $count++; ?>
                <?php endforeach; ?>
           </ol> 
        </div>
    </div>
    <div class="footer"><!--页面底部-->
        <div class="copyright"><!--底部版权-->
                    <p>Copyright@2012智梦创科科技有限公司<br/>京网文[2011]0398-130号&nbsp;京ICP证100780号</p>
        </div>
        <img src="<?php echo base_url();?>public/images/11.gif" />
            
    </div>
</div>
</body>
</html>
